// 路由视图配置

// loading
const loading = () => import('@/pages/loading')
// 主页
const index = () => import('@/pages/index')
// 主页
const room = () => import('@/pages/room')
// 创建工会
const createUnion = () => import('@/pages/createUnion')
// 工会动态
const uniondongtai = () => import('@/pages/uniondongtai')
// 我的欢乐豆
const beansUseDetail = () => import('@/pages/beansUseDetail')
// 消耗设置
const usefate = () => import('@/pages/usefate')
// 邀请函
const invitpage = () => import('@/pages/invitpage')
// 用户协议
const licence = () => import('@/pages/licence')
// 成员列表
const members = () => import('@/pages/members')
const newMemberApply = () => import('@/pages/newMemberApply')
// 发送房卡
const sendCard = () => import('@/pages/sendCard')
// 分销系统
const fenxiao = () => import('@/pages/fenxiao')
const cardRecord = () => import('@/pages/cardRecord')

let routes = [
  // {
  //   path: '*',
  //   redirect: '/index'
  // },
  {
    path: '/',
    redirect: '/loading'
  },
  {
    name: 'loading',
    path: '/loading',
    component: loading
  },
  {
    name: 'index',
    path: '/index',
    component: index
  },
  {
    name: 'room',
    path: '/room',
    component: room
  },
  {
    name: 'createUnion',
    path: '/createUnion',
    component: createUnion
  },
  {
    name: 'usefate',
    path: '/usefate',
    component: usefate
  },
  {
    name: 'invitpage',
    path: '/invitpage',
    component: invitpage
  },
  {
    name: 'licence',
    path: '/licence',
    component: licence
  },
  {
    name: 'uniondongtai',
    path: '/uniondongtai',
    component: uniondongtai
  },
  {
    name: 'members',
    path: '/members',
    component: members
  },
  {
    name: 'newMemberApply',
    path: '/newMemberApply',
    component: newMemberApply
  },
  {
    name: 'sendCard',
    path: '/sendCard',
    component: sendCard
  },
  {
    name: 'cardRecord',
    path: '/cardRecord',
    component: cardRecord
  },
  {
    name: 'fenxiao',
    path: '/fenxiao',
    component: fenxiao
  },
  {
    name: 'beansUseDetail',
    path: '/beansUseDetail',
    component: beansUseDetail
  }
]

export default routes
